package com.jdrx.sw.sewage.beans.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * sewage_device
 */
@Data
@ApiModel(value = "DevicePO", description = "设备")
public class DevicePO implements Serializable {
    private static final long serialVersionUID = -1206960462117924923L;

    @NotNull
    @Range(min = 1)
    @ApiModelProperty(value = "主键ID", required = true)
    private Long id;

    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    @NotNull
    @Range(min = 1)
    @ApiModelProperty(value = "站点工艺单元id", required = true)
    private Long processunitId;

    @NotNull
    @Range(min = 1)
    @ApiModelProperty(value = "站点采集设备id", required = true)
    private Long gatherDevId;

    @NotNull
    @Range(min = 1)
    @ApiModelProperty(value = "站点id", required = true)
    private Long stationId;

    @ApiModelProperty(value = "领用人名称", required = true)
    private String createName;

    @NotNull
    @Range(min = 1)
    @ApiModelProperty(value = "领用时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createAt;

    @ApiModelProperty(value = "领用人id", required = true)
    private Long createBy;

    @ApiModelProperty(value = "入库设备id")
    private Long devStorageId;

    @ApiModelProperty(value = "是否派过单(0 - 否 1 - 是)")
    private Integer noDispatch;

    @ApiModelProperty(value = "是否绑定点位（0 - 否 1 - 是）")
    private Integer collectPoint;
}